ActionController::Routing::Routes.draw do |map|
  map.root :controller => 'home', :action => 'main'
  map.resources :users, :member => { :suspend => :put, :unsuspend => :put, :purge => :delete }
  map.resource :session
  
  map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate', :activation_code => nil
  map.signup '/signup', :controller => 'users', :action => 'new'
  map.login '/login', :controller => 'sessions', :action => 'create'
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
  
  map.forgot_password '/forgot_password', :controller => 'users', :action => 'forgot_password'
  map.reset_password '/reset_password/:id', :controller => 'users', :action => 'reset_password'

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
